package com.fansz.FanszAPI.service;

import com.fansz.FanszAPI.domain.Friends;
import com.fansz.FanszAPI.domain.User;
import com.mongodb.WriteResult;

import java.util.List;

public interface UserService {

    public void saveUser(User user);
    
    public User findByName(String name, String type);

    public User findByUserId(String userId);

    public List<User> findByUserIds(List<String> userIds);

    public WriteResult updatePassword(String mobile,String password);

    public List<User> searchFriend(String key, int begin, int end);

    public List<Friends> getFriends(String id, String status);

    public long searchFriendCount(String key, int begin);

    public Friends getFollow(String id, String followId);

    public WriteResult updateFriendsStatus(String id,String status);

    public void saveFriends(Friends friends);

    public WriteResult updateFriendsInfo(String id,String followId, String status);
}

